﻿
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=yes" />
    <meta name="format-detection" content="email=no" />
    <title>
        勘查信息手机版
    </title>
    <link rel="stylesheet" type="text/css" href="css/css.css" />
    <meta content="勘查信息手机版" name="keywords" />
    <style type="text/css">
        .overlay {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 998;
            width: 100%;
            height: 100%;
            _padding: 0 20px 0 0;
            background-color: rgba(51, 51, 51, 0.8);
            display: none;
        }

        .showbox {
            position: fixed;
            top: 0;
            left: 50%;
            z-index: 9999;
            opacity: 0;
            filter: alpha(opacity=0);
            margin-left: -80px;
        }

        *html .showbox, *html .overlay {
            position: absolute;
            top: expression(eval(document.documentElement.scrollTop));
        }

        #AjaxLoading div.loadingWord {
            width: 180px;
            height: 50px;
            line-height: 50px;
            border: 2px solid #fe8323;
            background: #fff4e8;
            text-align: center;
        }
    </style>
    <script type="text/javascript" src="js/jquery.js"></script>
</head>
<body>
    <div class="mtzrl_box">
        <div class="mq_top">
            <div class="btn_back_l">
                <a class="btn_back" onclick="history.go(-1)">
                    <span></span>
                    <nav>返回</nav>
                </a>
            </div>
            <div class="mq_title">
                个人登陆
            </div>
            <div class="btn_ch_r">
            </div>
        </div>
        <div class="log_box">
            <ul>
                <li class="username">
                    <input type="text" value="" placeholder="个人用户名" id="username" />
                </li>
                <li class="pwd">
                    <input type="password" value="" placeholder="密码" id="password" />
                </li>
                <li class="login_free">
                    <div>
                        <input id="Hidden1" type="hidden" value="1" />
                        <input type="checkbox" class="inputCheckbox" checked="checked" />
                        <label>
                            30天内自动登录
                        </label>
                    </div>
                </li>
                <li class="btn_submit">
                    <button type="submit">
                        登 录
                    </button>
                </li>
                <li class="reg_findpwd"><a href="../password/default.htm">忘记密码</a></li>
            </ul>
        </div>

        <script type="text/javascript" src="../js/DeleteSession.js"></script>
        <script type="text/javascript" language="JavaScript">
            $(function () {
                $(".per_name").click(function (e) {
                    var parent = $(this).parent().parent().parent()
                    if (e && e.stopPropagation) e.stopPropagation()
                    if (e && e.preventDefault) e.preventDefault()
                    if (parent.hasClass("hover")) {
                        parent.removeClass("hover")
                    } else {
                        parent.addClass("hover")
                        var hideTip = function () {
                            parent.removeClass("hover")
                            $(document).off("click", hideTip)
                        }
                        $(document).on("click", hideTip)
                    }
                })
            })
        </script>
        <div class="footer">
            <div class="footer_top">
                <ul class="back_top">
                    <li><a href="javascript:scroll(0,0)">TOP</a></li>
                </ul>
            </div>
            <ul class="copyright">
                <li>
                    <a href="../../tzrl/default.htm">电脑版</a><span>|</span><a href="../../old/default.htm">普通版</a><span>|</span><a href="../fankui/default.htm">用户反馈</a><span>|</span><a href="../contact/default.htm">联系我们</a>
                </li>
                <li>&copy;2003-2013 浙B2-20110048 </li>
            </ul>
        </div>
    </div>
    <div class="overlay">&nbsp;</div>
    <div class="showbox" id="AjaxLoading">
        <div class="loadingWord" style="overflow:hidden;zoom:1"><img src="images/loadingx.gif" alt="" style="float:left;padding-top:6px;" />登陆中，请稍候...</div>
    </div>
    <script type="text/javascript" src="js/ShowTip.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".inputCheckbox").click(function () {
                $("#showxiang").toggle();
                if ($("#Hidden1").val() == "0") {
                    $("#Hidden1").val("1");
                }
                else {
                    $("#Hidden1").val("0");
                }
            });

            $(".btn_submit").click(function () {
                $.ajax({
                    type: "post",
                    url: "ajax/login.ashx",
                    data: { flag: $("#Hidden1").val(), username: $("#username").val(), password: $("#password").val() },
                    beforeSend: function () { $(".overlay").css({ 'display': 'block', 'opacity': '0.8' }); $(".showbox").stop(true).animate({ 'margin-top': '300px', 'opacity': '1' }, 0); },
                    error: function () { $(".showbox").stop(true).animate({ 'margin-top': '250px', 'opacity': '0' }, 0); $(".overlay").css({ 'display': 'none', 'opacity': '0' }); showTip('系统维护，请稍候再试！'); return false; },
                    success: function (data) {
                        $(".showbox").stop(true).animate({ 'margin-top': '250px', 'opacity': '0' }, 0); $(".overlay").css({ 'display': 'none', 'opacity': '0' });
                        if (data == "1") {
                            showTip('用户名密码不能为空！'); return false;
                        }
                        else if (data == "2") {
                            showTip('登陆成功，正在跳转！');
                            location.href = "../manage/person/default.htm";
                        }
                        else if (data == "3") {
                            showTip('用户名密码不正确！'); return false;
                        }
                    }

                });

            });
        });
    </script>
</body>
</html>
